import request from './request.js';

export default {
	doAuthorise (data) {
		return request('/wechat-login' , 'POST', data)
	},
	getUserPhoneNumber(data) {
		return request('/get-mobile-number' , 'POST', data)
	},
	registerBinding(data) {
		return request('/auth/registerBinding' , 'POST', data)
	},
	
	getUserInfo() {
		return request(`/me` , 'Get')
	},
	editUserInfo(data) {
		return request(`/update-profile` , 'Post', data)
	},
	logout() {
		return request(`/logout` , 'Post')
	},
	getCityList() {
		return request(`/city` , 'Get')
	},
	getConfiguration() {
		return request(`/configuration` , 'Get')
	},
	getHouseType() {
		return request(`/house-type` , 'Get')
	},
	getHouseFacility() {
		return request(`/house-facility` , 'Get')
	},
	getHouseCharacter() {
		return request(`/house-character` , 'Get')
	},
	setHouseBaseInfo(data) {
		return request(`/house/base` , 'Post', data)
	},
	setHouseFacilityInfo(data) {
		return request(`/house/facility` , 'Post', data)
	},
	setRoomInfo(data) {
		return request(`/house/room` , 'Post', data)
	},
	setHouseNotice(data) {
		return request(`/house/notice` , 'Post', data)
	},
	setHouseSubmit(data) {
		return request(`/house/submit` , 'Post', data)
	},
	deleteRoom(data) {
		return request(`/house/room/` , 'delete', data )
	},
	deleteHouse(data) {
		return request(`/house/${data}` , 'delete')
	},
	getRenting(data) {
		return request(`/renting` , 'Post',  data)
	},
	getHouseInfo(id) {
		return request(`/renting/${id}` , 'Get', )
	},
	getMyHouseInfo(id) {
		return request(`/my-house/${id}` , 'Get', )
	},
	getMyHouseList(data) {
		return request(`/my-house` , 'Get', data )  // 房东房源列表
	},
	changeRole(data) {
		return request(`/change-role` , 'post', data )  // 房东房源列表
	},
	deactive(data) {
		return request(`/my-house/deactive` , 'post', data )  
	},
	setLat(data) {
		return request(`/house/coordinate` , 'post', data )  
	},
	getTenantOrder(data) {
		return request(`/order/tenant` , 'Get', data )  
	},
	getLandlordOrder(data) {
		return request(`/order/landlord` , 'Get', data )  
	},
	getOrderStatus() {
		return request(`/order/status` , 'Get' )  
	},
	getLastDaysData() {
		return request(`/order/last-3-days` , 'Get' )  
	},
	getOrderData(orderNumber) {
		return request(`/order/${orderNumber}` , 'Get' )  
	},
	addOrder(data) {
		return request(`/order` , 'Post',  data)  
	},
	cancelOrder(data) {
		return request(`/order/cancel` , 'Post',  data)  
	},
	confirmOrder(data) {
		return request('/order/confirm' , 'Post',  data)  
	},
	getRentDate(data) {
		return request('/renting/rented-date' , 'Get',  data)  
	},
	getNearby(data) {
		return request('/map/nearby' , 'Get',  data)  
	},
	getPayData(data) {
		return request(`/payment/pay` , 'Post',  data)
	},
	getRecommendTags() {
		return request(`/recommend-tags` , 'Get')
	},
	getCityHasHouse() {
		return request(`/city/has-houses` , 'Get')
	},
	checkoutOrder(data) {
		return request(`/order/check-out` , 'Post',  data)
	},
	addCompaint(data) {
		return request(`/complaint` , 'Post',  data)
	},
	getPaidList(data) {
		return request(`/order/tenant/paid` , 'Get', data)
	},
	setRentDate(id, data) {
		return request(`/house/room/${id}/disabled-rent-date` , 'Post', data)
	},
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	

	
	
	
	
	
	

	
	
	
	

	
	

	


	
	

	
	
}